@width: 100%;

.display {
  display: inline-block;
  vertical-align: top;
}

.box {
  box-sizing: border-box;
}

.ly-content {
  .ly-img {
    width: 60%;
    display: block;
    margin: 0 auto 40px;
    img {
      width: @width;
    }
    h4 {
      padding: 10px 25%;
      .box;
      text-align: center;
      font-size: 16px;
      line-height: 25px;
      color: #333;
    }
    p {
      text-align: center;
      font-size: 16px;
      line-height: 40px;
    }
  }
  .ly-list {
    width: @width;
    font-size: 0;

    -webkit-column-count: 2;
    -webkit-column-gap: 0;
    -webkit-column-rule: 0;

    -moz-column-count: 2;
    -moz-column-gap: 0;
    -moz-column-rule: 0;

    /* ie */
    column-count: 2;
    column-gap: 0;
    column-rule: 0;
    li {
      padding: 20px;
      break-inside: avoid;
      margin-bottom: 20px;
      .box;
      .display;
      text-align: center;
      img {
        width: @width;
      }
      h6 {
        line-height: 30px;
        font-size: 14px;
      }
      h1 {
        line-height: 30px;
        font-size: 16px;
        color: #000;
      }
      p {
        color: #000;
        font-size: 14px;
      }
      &:hover {
        background: #f3f3f3;
      }
    }
  }
}

.ly-mast-show {
  position: absolute;
  top: 200px;
  right: 50px;
  z-index: 99;
  width: 160px;
  text-align: center;
  .ly-show-bg {
    display: none;
  }
  .ly-intro {
    &.ly-sate {
      .ly-submit {
        display: none;
      }
      .ly-close {
        display: none;
      }
    }
    .ly-li-nver {
      display: none;
    }
    h4 {
      font-size: 20px;
      line-height: 40px;
      font-weight: 700;
    }
    h2 {
      font-size: 14px;
      line-height: 40px;
      border-bottom: 1px solid #666;
      border-top: 1px solid #666;
      margin-top: 10px;
      margin-bottom: 10px;
    }
    .ly-price {
      line-height: 60px;
      padding: 10px 0;
      font-size: 18px;
      color: #000;
      font-weight: 700;
    }
    .ly-submit {
      width: 140px;
      height: 35px;
      line-height: 35px;
      margin: 0 auto;
      background: #000;
      font-size: 14px;
      color: #fff;
      cursor: pointer;
    }
    .ly-li {
      width: @width;
      margin-top: 10px;
      h1 {
        font-size: 14px;
        text-align: left;
        line-height: 30px;
        border-bottom: 1px solid #666;
        padding-left: 10px;
        margin-bottom: 10px;
        .box;
      }
      li {
        width: @width;
        padding-bottom: 10px;
        &.ly-cation {
          span {
            border: 1px solid #000;
            color: #000;
          }
        }
        span {
          width: 40px;
          height: 20px;
          display: block;
          margin: 0 auto;
          border-radius: 3px;
          border: 1px solid #e5e5e5;
          line-height: 20px;
          color: #333;
          cursor: pointer;
        }
      }
    }
  }
}

.ly-title-show {
  width: @width;
  margin-bottom: 20px;
  h1 {
    font-size: 18px;
    line-height: 40px;
    border-bottom: 1px solid #e5e5e5;
  }
}

.ly-cont {
  .ly-title-show {
    margin-top: 60px;
    padding: 0 20px;
    .box;
  }
}

.ly-show-intro {
  width: @width;
  p {
    line-height: 25px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #000;
    img {
      max-width: @width;
      display: block;
    }
  }
}

@media screen  and (max-width: 1500px) {
  .ly-intro {
    right: 50px;
  }
}

@media screen  and (min-width: 1520px) {
  .ly-intro {
    right: 200px;
  }
}

@media screen  and (max-width: 980px) {
  .ly-content {
    .ly-img {
      width: @width;
      h4 {
        padding: 10px;
      }
    }
    .ly-list {
      li {
        padding: 5px;
      }
    }
  }

  .ly-mast-show {
    position: static;
    margin: 0 auto 30px;
    //    .ly-show-bg{
    //      width: @width;
    //      height: @width;
    //      content: "";
    //      position: fixed;
    //      background: rgba(0,0,0,0.5);
    //      top: 0;
    //      left: 0;
    //      z-index: 9999999;
    //display: block;
    //    }
    .ly-intro {
      &.ly-sate {
        position: fixed;
        z-index: 99999991;
        width: @width;
        height: 20rem;
        bottom: 0;
        left: 0;
        background: #fff;
        box-shadow: 0 0 2px #ccc;
        font-size: 0;
        display: none;
        .ly-close {
          width: 2rem;
          height: 2rem;
          position: fixed;
          bottom: 19rem;
          right: 1rem;
          z-index: 9;
          display: block;
          background: #fff;
          border-radius: 50%;
          img {
            width: @width;
          }
        }
        .ly-li {
          width: 46%;
          margin: 0 2%;
          .display;
          font-size: 0;
          li {
            .display;
            width: @width/2;
            span {
              font-size: 0.7rem;
            }
          }
        }
        .ly-price {
          line-height: 2rem;
        }
        .ly-submit {
          display: block;
        }
      }
      .ly-li-nver {
        display: block;
        color: #000;
        line-height: 2rem;
        margin-bottom: 2rem;
        font-size: 0.8rem;
        font-weight: 700;
      }
    }
  }
}